home *** CD-ROM | disk | FTP | other *** search
- Path: solon.com!not-for-mail
- From: Kengo Hashimoto <nexx@mittens.stu.rpi.edu>
- Newsgroups: comp.lang.c,comp.lang.c.moderated,comp.lang.c++
- Subject: Re: Is C/C++ convertor available ???
- Date: 11 Apr 1996 06:37:30 -0500
- Organization: Rensselaer Polytechnic Institute, Troy NY, USA
- Sender: clc@solutions.solon.com
- Approved: clc@solutions.solon.com
- Message-ID: <4kiqtq$65d@solutions.solon.com>
- References: <4k5vt7$a3c@solutions.solon.com> <4kcmib$ova@solutions.solon.com> <4kg88m$ig8@solutions.solon.com>
- NNTP-Posting-Host: solutions.solon.com
-
- On 10 Apr 1996, William O'Hara wrote:
-
- > >You heard wrong. g++ is a C++ compiler, not a C++ to C
- > translator, and it has
- > >no such option.
- >
- > I DO NOT use gcc.
-
- Then please do not say things that you know naught the answers to =]
-
- > Yet I wouldn't doubt that
- > there was a feature..
-
- G++ is, as the other person has stated, a C++ compiler, and NOT a C++ to
- C translator. If you want/need C++ to C translating, find something
- called CFront. It would be pricey, though.
-
- > After all C++ is an extension to
- > C which is theortically an extension to itself. :)
-
- No, C++ is a superset of C. What you're saying implies that C is also a
- superset of C++, which is not true.
-
- > Classes and such all boil down to structures..
-
- though this is correct in the most basic of levels, C-style structures do
- not provide a way for binding functions and data into one data object,
- while C++ allows you to do so.
-
- > Don't
- > ever get the idea that C++ is its own language. It goes
- > through a tier of translation before compilation.
-
- The current versions of FSF's G++ and other C++ compilers *are* C++
- compilers. Other C++ compilers, however, are simply filters, including
- the older versions of G++. Perhaps that's where you have gotten your
- confusion from. C++ *is* its own language, despite the fact that it is an
- extention to C, such OO extentions as virtual functions, templates, and
- class inheritances, among others, do qualify it as a new language, IMHO.
- If you contend that the syntax of C is too much like C++ for C++ to be a
- new language, then you could also argue that csh(1) shell programming is
- also programming in C, simply because csh(1) was designed to make life
- simple for the C programmer.
-
- Nexx
-
- Each day of a person's life is a battle;
- The entire life being the war.
- A war, not against anybody else;
- But one fought against oneself.
- One need never to fight alone;
- One shalt always have companions of the heart.
-